package com.authine.cloudpivot.enums;

public enum RxEnum {
    CASEDOWN("casedown", "ikhmj_casedown"),
    CASEITEM("caseitem", "ikhmj_caseitem"),
    HAND("hand", "ikhmj_handledown"),
    DELAY("delay", "ikhmj_delaydown"),
    INFO("info", "ikhmj_infodown"),
    NOTCON("notcon", "ikhmj_notcontactdown"),
    RE("re", "ikhmj_returndown"),
    SIGN("sign", "ikhmj_signdown"),
    SUPP("supp", "ikhmj_supplementdown");
    private String name;
    private String value;

    RxEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }



    public static String getValueByName(String name) {
        for (RxEnum elem : RxEnum.values()) {
            if (elem.getName().equals(name)) {
                return elem.getValue();
            }

        }
        return null;
    }
}